﻿(function () {
    "use strict";

    function bindHandler() {
        $('#home-baby-log').click(function () {
            WinJS.Navigation.navigate("/pages/baby-log/main.html");
        });
        $('#home-check-list').click(function () {
            WinJS.Navigation.navigate("/pages/check-list/main.html");
        });
        $('#home-growth-chart').click(function () {
            WinJS.Navigation.navigate("/pages/growth-chart/main.html");
        });
    }

    WinJS.UI.Pages.define("/pages/home/home.html", {
        // This function is called whenever a user navigates to this page. It
        // populates the page elements with the app's data.
        ready: function (element, options) {
            // TODO: Initialize the page here.
            bindHandler();
        }
    });
})();
